/***************************************************************************
创建者：华磊
 开始时间：               : 2020.1１.09
 copyright            : (C) 深圳市华友高科有限公司
 修改说明：（每次有修改就添加一条，带有 修改人，修改时间，修改描述）

 ***************************************************************************
 *   左侧自定义功能视窗测试用代理类
*                                                                         *
 ***************************************************************************/
#ifndef LEFTFUNDELEGATE_H
#define LEFTFUNDELEGATE_H

#include "leftfundelegate_global.h"
#include <QObject>
#include "../leftfun/leftfun.h"
#include "../CommunicateDelegate/hmicommunicate.h"
#include "../CommunicateDelegate/globaldata.h"

//class MapView;
class CommunicateNormalDelegate;

class LEFTFUNDELEGATESHARED_EXPORT LeftFunDelegate : public QObject
{
    Q_OBJECT

public:
    LeftFunDelegate(CommunicateNormalDelegate *communicateNormalIn,GlobalData *globalDataIn,
                    LeftFun *leftFunIn,QObject* parent=0);
    ~LeftFunDelegate();

public slots:
    void leftFunEmpty1Slot();
    void leftFunEmpty2Slot();
    void leftFunEmpty3Slot();
    void leftFunEmpty4Slot();

private slots:
      void timeroutslot();

signals:
    /**
     * @brief msgBoxSignal                  通知 打开消息框
     */
    void msgBoxSignal(int type,QString title,QString text);
    void changeViewIDsignal(int changeViewID);
private:
    void initConnect();

private:
    int functionId_f1;
    int functionId_f2;
    int functionId_f3;
    int functionId_f4;
    CommunicateNormalDelegate *communicateNormal;
    GlobalData *globalData;
    QTimer *timer;

    LeftFun *leftFun;

    /**
     * @brief initConnect       初始化槽链接
     */

};

#endif // LEFTFUNDELEGATE_H
